Failed attempt at the final IO exercise.