created code and made plots for each CCG