Court elects new prosecutor general