An example of functional design (in Scala) · HackerTrans