Implement comparison function.
Implement operator<< (to print into cout).
Add comparisons test.