Final version take 2. Once again, not bad for only 6 hours work--only 4 of which were spent actually writing code.