Added the restart function 8.a