created Residence class