Finish Chapter5 exercises