IO practice with rectangles