Completed Functions

This is the completed assignment