Javafied the calculator