#27, #33 - Add MATH support for calculating distance.  This version has
a compile error in UI.java.