dice class as its own resource