Create midterm.cpp