implemented Comparatoer in scjp_ch7