added sample metropolis hasting sampler