AD example updated