implement Pryv Data Structure