add assigning guest names function.