These are my functions for Assignment 2