Economy app in Scala