finished problem 139