definition of Digits class, beginning