solution for QUESTION 1-1