Well and clearly put, Ed. I like jack015's simplification as well.
w_sohl, I recommend that you see Mike Sears' article on this at
http://www.footballrefs.com (Go to the Articles drop down menu, click on "The Basics of Penalty Enforcement"); it should answer any questions that you may have.