wrote a soln to ex 70 using sage