More haskell functions added for homework project