add code to examples page.