\begin{sequencediagram}
  \newthread{a}{:A}
  \newinst{b}{:B}
  \newinst[1]{c}{:C}
  \newinst[2]{d}{:D}
\end{sequencediagram}