main function to intialize calculator