I'm trying to construct a grammar for the following language $$L=\{a^ib^jc^i,\ i,j\ge 0\}$$
My try:
$$G=\left(V=\{S,X,Y\},\Sigma=\{a,b,c\},R,S\right)$$ where the rules are \begin{align*}S&\to X|Y \\ X&\to aXc|Y\\Y&\to bY|\varepsilon\end{align*} Is it good?
Any feedback/help would be appreciated, thank you!