Chapter6: Purely functional state

State.scala
Monoid.scala