restructured code slides for demo 1