Added console output for ex 1a