Calculator Class Integrated into Program and UI