test1 no longer needed, so removed it
removed commented-out old code of dist method
renamed dist to calcDist to comply with conventional naming of verb plus noun