Initial code for Nbody