Homework 4 final

Finally done with Homework 4.