added example to support distribution-aware Entities