final version

Completed the assignment and tested the functions