Created assignment and student folder

i think this chunk of logic could be simplified some with the logic below. can you simplify it some?