Deciding the data structure