finish the code of go_by_example