Added lecture 9 example code from first hour

Also apparently lecture 8 :)