Reduce java-ish level of first example.
Fix hashCode typo.
Better naming for case class.

Change name of first example to avoid name clash.