use of Objects methods to compare POJO instances