Updated lecture notes