added a new class Ppref and function get_params