Create Final working code