fifth question's solution