@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ComparePerson)) return false;

        ComparePerson person = (ComparePerson) o;

        if (age != person.age) return false;
        if (name != null ? !name.equals(person.name) : person.name != null) return false;

        return true;
    }