Fixed equals and displayAnObject