A programme for calculating atomic structures