Split Array and Struct Code