What are the three main functions of roots?