fixing the room class