official sample codes