Input and output codes now looks similar to Haskell (or Curry?)