Change char data[] to data[][10]