Updated exercises with input and output.