Adding applicative and monad instances for Classify