Create inBoundaries method