Fixed Instantiation

My application instantiated all three items prior to completling
calculate method. Now only one item is instantiated when it is needed.