Updated sample
Updated doc for new init method