maximum likelihood method example