Organize all calculator state and logic into a class that creates all necessary DOM elements and sets up event handlers when instantiated.