adding HW5 files  to repository

This time, I used my own Mac to do the homework instead of Unbuntu. 
In question 4 and question 5, I imported the previous functions in the previous question. Thank you !