added pasing tuples for jug problem