Added getCenter method