what is purpose and function of foundation