Explain the functions of accounting in business?