Solved questions 4-7