Lecture 6 almost-ready variant