simplifying calculator with steps