Taking the puzzle out of bookkeeping and taxation