Added strong typing for rect property