[C]some code for study from internet