void divide(int a, int b) { if (b == 0) { publish("Error: Cannot divide by zero"); } else { publish("Division: ${a / b}"); } }