implemented match for Stimulus and Wav classes