Theory Of Confined Quantum Systems