algo3: hw5: prob1,2 backuped