changd example to use pline instead of nline and jline