fix example - convert to stateless