Adding logic to UDP demo project and slides