public class Person {
    
    //the room the person is in
    private Room room;
    
    //the name of the person
    private String name;
    
    public Person(String name, Room room) {
        this.name = name;
        setRoom(room);
    }
    
    public void setRoom(Room room) {
        this.room = room;
    }
    
    public Room getRoom() {
        return room;
    }
    
    public String getName() {
        return name;
    }
}