finishes excercise A