Attribute and Variable Sampling Plan Design