DSA assignment 2