Using For in loop to display object