Altered code from Personal and Industry calcs for Week 3.