Codes from courses