added __eq__ method to Element