DSA assignment 2 part 2 essentially finished