The main function of the cell wall is to