add todo file and modify sample code