add fourth question's solution