The formation of M101-alike galaxies in the cold dark matter model