Notes for lesson P1 and P2