repo init with working code and example