Experimental study of two methods of coding