Added isInside method