Added init_repo() method