Quantization

to be completed