Adds dice class and test.