Implemented arrayFrom