Updated teaching material and code