A new Nbody/SPH code to study the formation of Elliptical Galaxies