week2 code sample