Finish exercise4.