Changed Init

Added sample code