stack = [] stack.push(value) # pushing value = stack.pop # popping stack.empty? # is empty?