Added Darrin's solution to the stock problem

It was more compact than mine, but I was able to compact it even
further.