done w/ problem 6