Code and examples