code from presentation