Added code for generating sentences but it's a bit buggy