Added global variables to project 2.