Made the Maybe monad a class.

Using a mutable struct was such a bad idea.