Quantum Rules for Atoms; Periodic Table