Centers with equal period functions