CS193p Calculator assignment