Dice class and test class