Update likelihood.m