added support for arrays of functions
Added support for arrays of functions