Task 2, Cleaning up the code with a method.

Objectives

We would like to :
  1. Use a method to clean up our code.

Notes