work on rectangle object