Poll type quiz with question dependencies

I looked at the code, added some small changes in the structure, also added the ability to manage dependency between the following questions. Later slightly expand this functionality. 
Wanted to know whether it is general to further develop or not?)