Added iterable object instead of just tuple and also removed restriction of only 2 dimension points