done hw3 algs