Fundamental accounting question

What is the purpose of accounting?