encapsulating rooms functionality