added if-condition
added newlines to sentences array
solved merge conflicts