Completed the first 6 tasks in Haskell