Princeton scientists found that the brain uses reusable “cognitive blocks” to create new behaviors quickly.