Java machine to write words with periodic table.