add sample of extract callback in README