Dan's midterm