add reference code for mid-term exam of last year