Dynamic data in Scala