Task 9 for assignment 4

Will need to be merged into final script