Proof is in the pudding; try debugging to understand why it works:
![image](https://f.cloud.github.com/assets/4072455/1698712/27ee8dcc-5f5f-11e3-850d-299e4012b3ee.png)