add another way to solve the question.