merged frontend.cpp and Hex-Calculator.cpp