Scala State Example with get, set, modify