Creation of functions required for Assignment 2.