altered method naming in main for purpose of readability.