Exam prep partial solution