Added getWidth and getHeight methods to Shape class