Modified lecture4