my homework submission for Coursera Functional Programming in Scala class