Update statistic program for assignment section 3.