solutions to lecture one

Suggestions welcome, I'm doing this to learn :)