alg_hw08 with old