Add range statistics code draft