Formatting data structure