The Functions of the Financial System