Adding example of events, also adding serialization of attributes (without proper escaping!)