Completed Homework 3