example to test thrust version.
a simple example.