finalized the midterm assignment