added containsInput and containsOutput methods to event