My starter code as I learn Scala, with the help of Coursera's Functional Programming Principles in Scala