added input/output toggles for exercise