John has 8 different flags that he wants to hang on the wall. How many different ways can the flags be arranged in a row?