Finish Assignment 2

Creation of the commentaries and the two functions for the assignment 2