midterm for cs162 6604657