updated simple example