how to compile the sample ?