adding lect 8