Changes needed to implement Shape's bounds check.