Curves and their fundamental groups