Finished the last excercise in IO.