week 6 final code