Added getCenter() method