Some sample codes