lecture4 examples