doing homework 1.7