Chapter 3: Changed the implementation of equals method.
		   Also corrected the second assertion in test equality method.