add net sample code