Updating example with input/output passing.