copied problem into B6.ii