made 3 functions, intial, person, closing and now using them to make xml