added first part of lecture 2