more lecture code