DSA homework 9