Equals hascode

Using hashcode and equals on clean and faster way with Objects