Change Event Adapter to a class.