Working on sphere code