Solutions to lecture 2

Excluding the dsl stuff in 10 and 11.