finished the code, but the result is not right.