Adds arrays function
Rewrites tests