Minor formatting tweaks to lessons 11 and 12

Also moved PI to be a constant, not a magic number, in 11.