add print func: <echo, printf> use method