Refactored code based on Franco and Dan's comments

please snakecase the variables here.