added ptypes example