Mi sa che non ti sei documentato molto se chiedi come impostare il tutto visto che sulla doc. ufficiale spiega esattamente come fare per esempi.