refactored the rooms module