fixed example so it works