the homework of class data structure