adds cleaner version of accounting. code is more modular and readable.