Review of functions

Messed up my function