code_implement_for_thesis