lecture3 examples