fixed typo. 3 should be 2 in last code block