Extract function implemented