Solution to Assignment 2 with an example of final implementation of the
functions in a for loop