stack.rb tests are passing