Added second version of stack