asg2 for data structures class