Updated IComparable examples to use generics