updated and fixed errors in lectures and exercises 8