Declaring variables for Problem 2