Money example from the book Test Driven Development done with JavaScript