algo3: hw3 finished