do with reverse polish calc and hw2