Notes for BTC lecture 5