A certain train has 8 cars that are being lined up on
a track. One of the cars is the engine, and another is the caboose. The engine will be the first car in line. The caboose will be the last car in line. In how many ways can the cars be lined up?