Typed up the Array function and tested it for errors, finding none.