passing tests. Implemented functions for room history based on room name and id.