question 2 done. e-step for all models coded