Simplified calculator by grouping operations.