solved some io exercises