is it possible to nest functions in an array?