Going through various problems using haskell