How to compile and run the sample