added lecture code