Added the majority formula