How do chloroplasts contribute to the function of the cell?

They convert energy from the sun into glucose.
They enclose the cell and separate it from other things in its environment.
They provide structure to the cell.
They convert glucose into usable energy.