new aapi sample