Think pyhton, ch18, just copied last exercise to avoid trig