Define class as it relates to the Haskell programming language.
class Measurable a where
size :: a -> Integer
Now, if we have a type that we want to include in this class, we can
declare it as an instance. The following declares lists of any type
of data to be in the Measurable class.
instance Measurable [a] where
size [] = 0
size (x:xs) = 1 + size xs