Aggregator in Scala - not finished