- Implemented first version of genBranch