Text of my bachelor thesis.