Added examples for StateMonad using java 8.