Finished Homework 2