Initialize Repository - working solution