the code in the course of datastructure