Eventhandling example.