Added a sample typeclass code; this is more or less a gist, but...
Fixed sample typeclass code.