@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Person2 person2 = (Person2) o;

        if (age != person2.age) return false;
        if (!name.equals(person2.name)) return false;

        return true;
    }