added UDP demo code