moved simple example to top of file