Solving problems regarding integration different branches