commit week3 code