Added model, closed #1
Model constructor fix