add runnable example, run with race detector