Fill the blank with my own code

Finished the two functions