Tried to add example of using State monad