Writing Initialization functions