generate class and digitcoverte method
test for 0
all digits