update Data structure excercise