Add a class to handle the calculator's internal state and manipulations to it
and an enum to clearly show stored operations.