Added rectInBounds()