solved homework problem 1