added half of lecture 1 d3 part, just in case I lose it. incomplete.