This is my updated Homework 3