Baby Carlos is playing with a shape-sorting toy. At first, he tries to fit every block in every opening until one fits. After a week, Carlos is able to get most of the blocks into the correct opening on the first try. What type of learned behavior is this?

conditioning
imprinting
instinct
trial-and-error learning