Cs229 Midterm Solutions