The solutions of Scala assignment on Coursera