Make the two functions needed for the assignment