Chapter3 excersise finished