It's not only an excellent discussion/lesson on exactly this, it's also an incredibly well written book.