Dice class.