Second program: toy-echo