I have a small problem statement of adding contacts(Name and Number) to a list and later displaying it. In the process of adding the process I have chosen is following method where it checks if the user has added the right format of number or not before adding. If a wrong format of number is added, the code will ask him to enter the details from beginning. My problem is if user has added wrong input he has to go only one step back i.e back to adding number and not from beginning. Basically how can i separate the below method into two and use them. Here i have taken Contact in a separate class. Am a beginner in c#. Please ignore if there are any errors. Thanks a ton

```
public void AddingContact()
{
    Contact addContact = new Contact();

    Console.WriteLine("Enter the name to be added:");
    addContact.Name = Console.ReadLine();

    Console.WriteLine("Enter the phone number to be added:");
    string NewNumber = Console.ReadLine();

    if(//So and so condition is true)
    { 
        Add contact to list<contacts>
    }
    else
    {
        AddingContact();
    }
}

```