You have 8 cards (pieces of paper) numbered from 1 to 8. The first 4 are all white, and the last 4 are all black. On each one is written:

#1: The next two cards are black.

#2: The next two cards are of different colors.

#3: The previous card has the same color as the next.

#4: There are the same number of black cards before and after this one.

#5: The previous card is of the same color as the next.

#6: The previous card is white.

#7: The next two cards are of the same color.

#8: The previous card is black.

Arrange the 8 cards in a row so that all the sentences result truthfully.