data2shape function

Make shapes from data