Changed cin to getline