national park exercise - refactored code to make format changes to improve readability