Formating new data structure