Finished the dormitory methods with test demo, init data of contract
type and dormitory type.