completed 6.14 excercise