Implements Eauls and HashCode in Book class.