started on method calls and got haskell api working