added the number of rooms logic