add plotEvent class