Code for the functional programming with scala course