Improving code for the previous 101haskell lecture.