What is the primary function of a nuclear reactor in a power plant?
A) To store nuclear waste safely
B) To convert nuclear energy into electrical energy
C) To enhance the efficiency of renewable energy sources
D) To regulate water temperature in the cooling system