Add Scala state exercise