midterm code & data