added the equations from the second part of the lecture.