introduce the Digit class