extraction example in c