getSentence function added :D