simplified binomial division
added cell creation code