Completed HW5.