Type Classes Scala implementation of Type Class example taken from Debasish Ghosh's Blog. Updated with operation semantics.