[Haskell-beginners] Using the state monad.