added example for storing entities