generate rh class