Use extract function pattern