Last version of the thesis