working on changing model object into array of objects to iterate over