Joe has homework assignments for Math, Spanish, and History. In how many different orders can he do his homework?