example 4-1: echo process