Add EventSource class