My data structure exercise.