Exercise 21

Completed some basic function construction