added array method to object
refactoring completed all methods passing to main code