adding code sample for gui calculator