Separate getValue and inputDigit
Consolidated all operations