First draft of full trigrams program.