Implemented each loop