adding storeEvent method with class type