A bird catches and tries to eat a caterpillar. The caterpillar has a bad taste, so the bird lets the caterpillar go. The next time it sees the same kind of caterpillar, the bird avoids eating it.

Which best describes this behavior?