Add getCenter method