Draft of my thesis for an ICS MS degree