You're not the first to think of this. Here's a good article:
http://www.marklunds.com/articles/one/360