Extract name and dob from data
Changing to dictionary
Moving everything into function