added a function to create the shapefile