class SyncEvent extends Event { int time; State state; Input input; void execute(Connection connection) { connection.synchronize(time, state, input); } }