Final version os thesis