Code for Sentence Generator