Implemented the allocate method, as described by Martin Fowler in PoEAA
(http://martinfowler.com/eaaCatalog/money.html)