Rewrite __eq__ to use equals method