examples and fragments of code