sample codes collection from net