update code of week 5 practice session