DSA homework2