Yet Another Haskell Tutorial/Io advanced