Complete homework 2 calculator