Adding the definition of computeNumberOfWays class