The sentiment polarity of the word good in these two sentences is positive but the whole sentences are negative.
we can see that the whole sentiment is not necessarily the sum of the parts (Turney, 2002).