added lecture and some example code