example

reworked example with cuda