Added the global variables and the Procedure to the Project 3 code