Digit Buffer Constructor
Separate getValue and inputDigit
Consolidated all operations