added C Examples in Haskell to ensure same code is being executed on haskell and c side.