Exercise 2.1:

Look at the console output to see the results!