refactor the hotel home works