a simple calculator written remixing java and javascript