updated chapter 2
fixed QR statement