So, this is my first homework in conext free grammar, I want the grammar that generates all possible words in L, I have come out with the following rules $$ S \rightarrow aS | bS| cX\\ X \rightarrow aX| bX| cY\\ Y \rightarrow aY|bY|cZ|cS\\ Z \rightarrow aZ|bZ |cK\\ K \rightarrow aK| bK| a| b| \epsilon $$
but it does not generate words of for wc where c is not in w.