Thank you for your answer. I'm posting a R code (that I did not write but am trying to understand) here to further clarify my understanding. In the following SEM model, aggression and stress are latent variables and reactivity is the mediating variable. I understood the code till the "#Variances and Covariances" part. I did not understand why in this code only the variances are specified and not the covariances, like I'm trying to understand the possible reasons so that it can help me write my own code. Thanks in advance.
medmodel1<-
'# measurement model
aggression =~ aggression1 + 1*aggression2
stress =~ 1*stress1 + stress2
# Regressions with Parameter Names
aggression ~ stress + b1*reactivity
reactivity ~ a1*stress
## Indirect Effects
stag := a1*b1
## Variances and Covariances
stress1 ~~ stress1
reactivity ~~ reactivity
stress2 ~~ stress2
aggression1 ~~ aggression1
aggression2 ~~ aggression2
stress ~~ stress
aggression ~~ aggression