-code from lecture 4(learn haskell for great good chapter 5)
-added collatz sequence
-added folds