add die class and implement its roll function.