solution to 'my first io'