Added the structure to write to excel