Quantum Theory Of Materials