Adding stack to data-structure