Network programming sample