Add a event loop sample