added IForEach class to abstract the loop code
impemented the IForEach interface for that type of entity collection
modified the getRooms and removeUserFromAllRooms methods to implement
the forEachRoom 'functional-loop'