Implemented the for in loop