templatizing classes
adding main to test coordinates and geometry