How to run sample code