add code for getting the code distribution of an experiment