Codes for mid-semester exam preparation