refactored the data structure stack, still needs to change some stuff, test is not passing