writes exam