finish the homework1, add the civil_exam function