Following lectures 2-4