Added code for example.