Affine planes, ternary rings, and examples of non-Desarguesian planes