extract function

Extract values from other models