Lab2: implement echo