Added extracredit solution from exam 2.