extract() example