Modified dice class