codes while learnling data structure