completed 7.12 exercise