Working rectangle implementation...