fixed up example - now it works