add exam function