working through chapter5