improve dice class