Adding a backup function
add a update phase function
add a delete old phase function
Merge branch 'hw3' into boris