trying to get the example working in app gallery