modified google example showing how work in-app purchase