Completed Homework 2