extractors function

Extract elements from an object