ppp as a function, some examples