fixed #1 Implemented Array loop