How to measure a RECTANGLE