first function code works

Trying to make sure I am understanding the function code I put it and
it is working.