DSA homework