Smart assigning of positions in space