code almost done, check the echo program bug