sample rithm