Homework5

Source code for homework5.