Move functions to methods in Occupant class.