
import java.time.LocalDate;
import java.util.UUID;

public class Person {
	
	public enum Gender {
		MALE,
		FEMALE,
		OTHER
	}
	
	private Gender gender;
	private final LocalDate birthDate;
	private String name;
	private final UUID id;
	
	public Person(Gender gender, LocalDate birthDate, String name, UUID id) {
		this.setGender(gender);
		this.birthDate = birthDate;
		this.setName(name);
		this.id = id;
	}
	
	public Gender getGender() {
		return gender;
	}
	
	public void setGender(Gender gender) {
		this.gender = gender;
	}
	
	public LocalDate getBirthDate() {
		return birthDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public UUID getId() {
		return id;
	}

}

@@ -22,16 +22,41 @@
 alDate;%0A
+import java.time.Period;%0A
 import j
@@ -753,12 +753,96 @@
 n id;%0A%09%7D
+%0A%09%0A%09public Period getAge() %7B%0A%09%09return Period.between(birthDate, LocalDate.now());%0A%09%7D
 %0A%0A%7D%0A

add getAge():Period