Finished Homework 3