Solution to 12 - Creating functions