Added the procedure function to Project 2 and made a slight change to the setup of the globale variables.