Added example for sptr initialization