updated chapter5