added sample code init