Added model stack generator

ref #8