Haskell code written for CS4620 - Functional Programming I