Finalized Homework 5