Added Posterior class to replace likelihood class