Finish Chapter3 example