Use Object.each for object looping