I would like to draw a stacked venn diagram in latex that looks like the following figure.
Please any help. Thank you in advance.
Edited: I have tried to modify this latex, but got stock:
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.text}
\begin{tikzpicture}[scale=0.85]
\foreach \X [count=\Y starting from 2] in
{A,B,C}
{\draw (-\Y,-\Y/2) circle ({1.5*\Y} and \Y);
\path[decoration={text along path,
text={classes |\itshape|\X},text align=center,raise=0.2em},decorate] (-\Y,-\Y/2) +(-1.5*\Y,0) arc(180:360:{1.5*\Y} and \Y);
}
\draw ([xshift=-0.5cm,yshift=-0.5cm]current bounding box.south west)
rectangle ([xshift=0.5cm,yshift=0.5cm]current bounding box.north east);
\node[anchor=south] at (current bounding box.north) {\textbf{Three classes}};
\end{tikzpicture}