changed hash contents to array of class objects instead of array of class properties