Spending Analysis with Scala