Refactored variable as per the professor's comments.