add rect.contains method