Code from the lecture and exercises