lecture 7 + delete bad code