Homework 9 - Fixed a chaining issue for calculator functions