Code to find the vicinity