Update Homework_8.m

Fixed problem 3.