Copied Adam's midterm project for school