You don't actually need this. This is what you'll end up with if @stocks = {}