Finished functions to complete assignment 2