update combinatorics class