Solutions to midterm practice