commit from the first half of the lecture