Finished Assignment 10
Removed unnecessary function