tweak example to do some parallel tempering
double -> Type