notes on example 2 and slides for example 3