Children’s complex thinking skills begin forming before they go to school