week2 homework and examples