algo hw9. first task fixed