Added Distance abstract super class
Added test lines in main