Sample code from a lecture on Lists in Haskell