Implemented rudimentary Equals() method