Changed example to show console output when running code