Implemented Dr. Jarvis's suggestions for the Leontief lab.