solutions to previous years written exams