<Table> <Tr> <Th_colspan="2"> Pledge of Allegiance (Bellamy versions) (changes are bolded and underlined) </Th> </Tr> <Tr> <Th_colspan="2"> 1892 (first version) </Th> </Tr> <Tr> <Td_colspan="2"> "I pledge allegiance to my Flag and the Republic for which it stands, one nation, indivisible, with liberty and justice for all ." </Td> </Tr> <Tr> <Th_colspan="2"> 1892 to 1923 </Th> </Tr> <Tr> <Td_colspan="2"> "I pledge allegiance to my Flag and to the Republic for which it stands, one nation, indivisible, with liberty and justice for all ." </Td> </Tr> <Tr> <Th_colspan="2"> 1923 to 1954 </Th> </Tr> <Tr> <Td_colspan="2"> "I pledge allegiance to the Flag of the United States of America and to the Republic for which it stands, one nation, indivisible, with liberty and justice for all ." </Td> </Tr> <Tr> <Th_colspan="2"> 1954 (current version) 4 U.S.C. § 4 </Th> </Tr> <Tr> <Td_colspan="2"> "I pledge allegiance to the Flag of the United States of America, and to the Republic for which it stands, one Nation under God, indivisible, with liberty and justice for all ." </Td> </Tr> </Table> <Tr> <Th_colspan="2"> Pledge of Allegiance (Bellamy versions) (changes are bolded and underlined) </Th> </Tr>

Who wrote the pledge of allegiance and why