compile and run
an example