port the calculator app