class Person { private String name; private int age; private Person spouce; public Person(String name, int age){ this.name = name; this.age = age; } public Person getOlderPerson(Person other){ if (this.age > other.age){ return this; } return other; } public void marry(Person other){ this.spouce = other; other.spouce = this; } }