Assigning a guest name helper function