Add analytic function
Add haskell version for first lab