Changed Repositories to use using statement