Implemented instantiation code for Room