accounting systems (solution with working)