Created rectangle object correctly.