added addWordVertical method