The Stock Market in the Overlapping Generations Model with Production