final version of thesis