Simple data strcutures implemented in Scala