Foundations of theory of mind and its development in early childhood