Finish class5 exercise 1