Adding lecture 4 problem 8,9 and 10 snipits