Letter logic added.  Main function mapped.