Implement grouped arithmetic