Added examples to IO.hs