add == operator to object