implemented Likelihood and LogLikelihood