libevent exercise code