Update examples to version 0.5 API