update examples to version 3