implemented noteOn method