Programming Assignment 2

Two functions