added pure virtual comparison functions to book