algo3: hw3 prepared