Added implementation of echo endpoint