created array and added puts iteration
added 3 methods