Finished Assignment for Week4.