Adding Lecture 1 and 2 code

Adding some code from Lectures 1-2