the writing of the majority opinion in a case is assigned by the chief justice if he or she is in the majority and otherwise by