added second half of the last lecture from this semester