adding in the calculation of binomial coefficiants