Going through the functional programming book