working on the lab 7 extra credit IO