completed path smoothing but it does not agree with instructor's answer