updating lect 6