working initialize function
Added Populate function