next up: implement compareTos