merging lecture 5
add my part of lecture 6