Capture and display stdout and stderr
Refactor the ExampleUse