Added a equals method