Energy of the atomic states : Classical and Quantum mechanical treatment