added Main.as with an example of monad.