added networking example code