s thesis