updated code and notes after lab2
updated code and notes after lab2