cap 10 final exercise