get_bounds method added to Shape