func prog week 6