small modification on an example

a small correction which permits pipe in command line