Contemporary theory of atomic structure : tutorial