Final version thesis