week6 code & slides