Rrefactoring of value types samples