Finding the new coordinates