doc rect and plane classes