add EventResource class