Implement scripting code

I implement the missing scripting code to make the calculator working.