class&objects
object pushed to array
added foreach and echo