Make class fields readonly.
Remove brackets
Some refactorings to remove internal state.
Do not use default constructor and AddLine of Digit class.
Remove GetAsString helper method and instead create the string in the constructor.
Move ToString to the end of the Digit class