removed global variables lower, upper, special, and nums to be defined in the 'checkComplexity' method