updated midterm cheatsheet