added sentence building algorithms