Update code and explanation; add pdf.