More maths and haskell!