QR implemented