Pre-lecture 11 code