learning eventmachine sample codes