Sample Fraction object using objective c