DSA homework4