Numerical simulations of the evolution of galaxy structure