Did example 18

Learned how to make a function