Understanding rational action in infancy