Master's thesis version