Code and example.