Version before switching data structure according to solutions