sample codes