Update sample codes.