There are 2 errors:
1. "new" is missing on line:
NormalDistribution density = NormalDistribution();
should this be?:
NormalDistribution density = new NormalDistribution();
2. The outputs (likelihoods) do not match commenst in code
l1: -0.127993886661098 l2: 0.0117115743440019 l3: -298.746524447342
Can someone help?