Educational data structures in Scala