training and code examples