Deputy graduates top of his class