homework 5 of stat method